﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <mydatabase.h>
#include <QString>
#include "QPainter"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    MainWindow(QString account,QWidget *parent = nullptr);
    ~MainWindow();

private slots:

    void on_employerManageBtn_clicked();

    void on_inRoomBtn_clicked();

    void on_outRoomBtn_clicked();

    void on_roomEditBtn_clicked();

    void on_roomInfoBtn_clicked();


    void on_addRoomWindowBtn_clicked();

    void on_removeRoomWindowBtn_clicked();

    void on_changeRoomPriceWindowBtn_clicked();

    void on_addRoomTypeWIndowBtn_clicked();
    void on_pushButton_2_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_7_clicked();

    void on_pushButton_clicked();

    void on_inRoomSubmit_clicked();


    void on_escBtn_addRoom_clicked();


    void on_escBtn_removeRoom_clicked();


    void on_pushButton_8_clicked();


    void on_pushButton_10_clicked();

    void system_Init(QString account);

//    void on_lineEdit_7_textChanged(const QString &arg1);

    bool isNumber(const QString &str);

    bool isChineseCharacters(const QString &str);
    void on_comboBox_2_activated(int index);

    void on_outRoomBtn_dhy_clicked();

    void on_addRoomBtn_clicked();

    void on_removeRoomBtn_clicked();

    void on_changeRoomPriceBtn_clicked();

    void on_addRoomTypeBtn_clicked();

    void addRoomTypeComboBoxInit_dhy();

    void on_reset_rzx_clicked();

    void on_inRoomId_editingFinished();

    void on_slectRoomImage_rzx_clicked();

    void on_outRoomId_dhy_editingFinished();

    void on_hotelBill_pushButton_rzx_clicked();

    void on_hotelBill_tableWidget_rzx_cellActivated(int row, int column);

    void on_pushButtonExit_clicked();

private:
    Ui::MainWindow *ui;
    MyDatabase *back_workerDataBase; //员工数据库
    MyDatabase *back_roomClass;  //房间类型
    MyDatabase *back_roomInfo;   //订房情况
    MyDatabase *back_hotelBill;  //酒店经营情况
    QVariantList user;  //登录用户的数据信息

};
#endif // MAINWINDOW_H
